<template>
	<section>
	  <h1>vuex 简单的计数器</h1>
	  <p>{{count}}</p>
	  <p>
	    <button @click="increment">+</button>
	    <button @click="decrement">-</button>
	  </p>
	</section>
</template>
<script>
	import { mapGetters,mapActions } from 'vuex'
	
	export default {
		computed:mapGetters({
			count:'getCount'
		}),
		methods: mapActions(['decrement','increment'])
	}
</script>